<h3>涂鸦板</h3>
<ul id="article_list">
  <% for article in @articles %>
    <li>
      <h4><%=h article.title %></h4>
      <p>
        <span class="nick_name"><%=User.find(article.user_id).nickname%>说：</span><%=h article.content %>
      </p>
      <div class="action_link">
        <span class="date"><%=article.created_at.strftime("%Y-%m-%d") %></span>
        <% if editor? %>
          <%= link_to '回复','/articles/reply',:class=>'action_comment' %>
          <%= link_to '删除', article, :confirm => '你确定?', :method => :delete,:class=>'action_delete' %>
        </div>
      <% end %>
    </li>
  <% end %>
</ul>



